<?php
session_name("abdsessid");
session_start();
include_once("inc/func/procesar_postreply.php");
include_once("inc/mysql/conectar.php");
$datosARecoger = Array('titulo','post');
$erroresResponder = validarPostreply($_REQUEST);
if(!intentoDeHacking($datosARecoger) && count($erroresResponder) == 0)
	{
		postear($_REQUEST['titulo'],getIdUser($_SESSION['datosLogin']['usuario']),$_REQUEST['post'],$_SESSION['datosPostreply']['post_principal']);
		Header("Location: showtopic.php?id=".$_SESSION['datosPostreply']['post_principal']);
	} else
		Header("Location: postreply.php?p=".$_SESSION['datosPostreply']['post_principal']);
?>